package cn.edu.nuc.ssm.dao;

import cn.edu.nuc.ssm.entity.AccountPayRelKey;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

public interface AccountPayRelMapper {
    @Delete({
        "delete from account_pay_rel",
        "where pa_incom_id = #{paIncomId,jdbcType=INTEGER}",
          "and acc_id = #{accId,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(AccountPayRelKey key);

    @Insert({
        "insert into account_pay_rel (pa_incom_id, acc_id)",
        "values (#{paIncomId,jdbcType=INTEGER}, #{accId,jdbcType=INTEGER})"
    })
    int insert(AccountPayRelKey record);

    int insertSelective(AccountPayRelKey record);


}